import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //获取风险分解图
  getDecompositionMap: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/riskDecomposition`, query),
  //获取超额风险趋势图
  getRiskTrend: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/riskTrends`, query),
  //获取因子风险贡献
  getFactor: (query) => api.get(`${config.interfaces.type5}maat-workstation/factorExposure/riskFactorContributeDetails`, query),
};
